package com.bdzl.auth.servicefeign;

import com.bdzl.auth.servicefeign.impl.MobileCodeFeignServiceHystrix;
import com.bdzl.pub.config.Constant;
import com.bdzl.pub.entity.sys.MobileCodeDO;
import com.bdzl.pub.util.param.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name="loanAdmin",fallback = MobileCodeFeignServiceHystrix.class,url = Constant.sys+":8001")
public interface MobileCodeFeignService {

    @PostMapping("/bdzl/mobileCode/save")
    R save(@RequestBody MobileCodeDO mobileCode);

}
